package module

type MysqlConf struct {
	Address         string   `json:"address" yaml:"address"`
	DbName          string   `json:"dbname" yaml:"dbname"`
	Username        string   `json:"username" yaml:"username"`
	Password        string   `json:"password" yaml:"password"`
	Prefix          string   `json:"prefix" yaml:"prefix"`
	MaxOpenConns    int      `json:"maxConns" yaml:"maxConns"`
	MaxIdleConns    int      `json:"maxidleConns" yaml:"maxidleConns"`
	ConnMaxLifetime int64    `json:"connMaxLifeTime" yaml:"connMaxLifeTime"`
	IsLogMode       bool     `json:"isLogMode" yaml:"isLogMode" comment:"是否打印sql日志"`
	IsSingular      bool     `json:"isSingular" yaml:"isSingular" comment:"是否表名单数"`
	NotReplace      bool     `json:"notReplace" yaml:"notReplace" comment:"不填不替换回调函数"`
	SSLCertRepeat   bool     `json:"sslCertRepeat" yaml:"sslCertRepeat" comment:"主从数据库时  ssl证书是否一致  true主从都是同一个证书文件 false不一致 "`
	Certs           []string `json:"certs" yaml:"certs" comment:"证书文件 CaCert ClientCert ClientKey"`
	TLSConfig       string   `json:"tLSConfig" yaml:"tLSConfig" comment:"当证书一致时程序内使用"`
}
